<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--view 层-->
<div id="app2">
    <h2>{{message}}</h2>
</div>
<!--viewModel 层-->
<script src="../../js/vue.js"></script>
<!--model 层-->
<script>
    const app = new Vue({
        el: '#app2',
        data: {
            message: 'vue的声明周期'
        },
        methods: {},
        beforeCreate: function () {

        }, created: function () {
            //网络请求
        }, beforeMount: function () {

        }, mounted: function () {
            //渲染DOM
        }, beforeDestroy: function () {

        }, destroyed: function () {

        }
    })
</script>
</body>
</html>